
import Clipboard from 'clipboard'
import {ElMessage} from "element-plus";


export const CopyPast = function (str) {
    var clipboard = new Clipboard('.btn--info-id--copy', {
        text: function () {
            return str;
        }
    });
    clipboard.on('success', () => {
        ElMessage.success('复制成功!')
        clipboard.destroy()
    })
}
